package com.demo.crm.springboot3security.service;

import java.util.List;

import com.demo.crm.springboot3security.entity.FormTableStructure;
import com.mybatisflex.core.paginate.Page;

public interface FormTableStructureService {
    FormTableStructure findByFormIdAndStatus(Long formId, String status);

    FormTableStructure save(FormTableStructure structure);

    void delete(Long id);

    FormTableStructure findById(Long id);

    List<FormTableStructure> findAll();

    List<FormTableStructure> findByFormId(Long formId);

    Page<FormTableStructure> findByPage(int pageNumber, int pageSize);

    void deleteByFormId(Long formId);

    List<FormTableStructure> saveAll(List<FormTableStructure> structures);

    FormTableStructure findLatestByFormId(Long formId);

    FormTableStructure activate(Long id);

    FormTableStructure deactivate(Long id);
}